<template>
  <div id="app">
    <n-loading-bar-provider>
      <router-view />
      <a-spin v-show="false" />
    </n-loading-bar-provider>
  </div>
</template>

<script setup lang="ts">
import { NLoadingBarProvider } from "naive-ui";
import YourComponent from "./YourComponent.vue"; // 确保路径正确
</script>

<style lang="less">
* {
  margin: 0;
  padding: 0;
}

#app {
  height: 100%;
  background-color: #f3f4f7;
  display: flex;
  justify-content: space-between;
}

html,
body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  border-radius: 10px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(144, 147, 153, 0.3);
  -webkit-transition: 0.3s background-color;
  transition: 0.3s background-color;
}

body {
  position: relative;
}

#td-spin {
  width: 100vw;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99999999 !important;
}

#td-spin div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
}
</style>
